<%- if current_user %>
<%- vote = votable.votes.find(:first, :conditions => {:user_id => current_user}) %>
<%- vote_value = vote.nil? ? 0 : vote.value %>

<div class="vote" id="vote_on_t<%= votable.id %>">
  
  <div id="vote_count_for_t<%= votable.id %>" class="count"><%= votable.vote_score %></div>
  
  <%- if vote_value != 1 %>
  <%= vote_up_for(votable.id) %>
  <%- else %>
  <%= recant_vote_for(votable.id) %> 
  <% end %>
 
  <%- if vote_value != -1 %>
  <%= vote_down_for(votable.id) %>
  <%- else %>
  <%= recant_vote_for(votable.id) %> 
  <% end %>

</div>
<%- end %>
